//
//  SceneData.m
//  __PRODUCTNAME__
//
//  Created by LL.F on 16/09/03
//  Copyright (c) Mark. All rights reserved.
//

#import "SceneData.h"
#import "SceneSecData.h"

@implementation SceneData

+ (NSDictionary *)objectClassInArray{
    return @{@"data" : [SceneSecData class]};
}
- (void)setValue:(id)value forKey:(NSString *)key
{
    
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"data"]) {
        NSMutableArray<SceneSecData *>  *secDataArray = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            SceneSecData *secData = [SceneSecData modelWithDic:dic];
            [secDataArray addObject:secData];
        }
        _data = secDataArray;
    }
}

@end
